﻿namespace Charades.Web
{
	using System;
	using System.Configuration;

	public static class ServerSettings
	{
		public static bool IsYoAdminsNotifying = bool.Parse(ConfigurationManager.AppSettings["IsYoAdminsNotifying"]);
		public static string YoApiToken = ConfigurationManager.AppSettings["YoApiToken"];
		public static string[] YoUsers = ConfigurationManager.AppSettings["YoUsers"].Replace(" ", string.Empty).Split(',');
		public static Uri RootUrl = new Uri(ConfigurationManager.AppSettings["RootUrl"]);
		public static int MaxRoomSize = int.Parse(ConfigurationManager.AppSettings["MaxRoomSize"]);
		public static int MinRoomSize = int.Parse(ConfigurationManager.AppSettings["MinRoomSize"]);
		public static int RoundsCount = int.Parse(ConfigurationManager.AppSettings["RoundsCount"]);
		public static string TwitterConsumerKey = ConfigurationManager.AppSettings["TwitterConsumerKey"];
		public static string TwitterConsumerSecret = ConfigurationManager.AppSettings["TwitterConsumerSecret"];
		public static string VkAppId = ConfigurationManager.AppSettings["VkAppId"];
		public static string VkAppSecret = ConfigurationManager.AppSettings["VkAppSecret"];
		public static string FacebookAppId = ConfigurationManager.AppSettings["FacebookAppId"];
		public static string FacebookAppSecret = ConfigurationManager.AppSettings["FacebookAppSecret"];
		public static string GoogleClientId = ConfigurationManager.AppSettings["GoogleClientId"];
		public static string GoogleClientSecret = ConfigurationManager.AppSettings["GoogleClientSecret"];
	}
}